import {useState, useCallback} from "react";

export default ()=>{
  const [loginStatus, setLoginStatus] = useState(false);
  const login = useCallback(()=> setLoginStatus(true),[])
  const logout = useCallback(()=> setLoginStatus(false),[])
  return {loginStatus,login, logout}
}
